#ifndef MAIN_FUNCTION_H
#define MAIN_FUNCTION_H

#include <QWidget>
#include <QMouseEvent>
#include "smart_home.h"
#include "weather_online.h"
#include "music_player.h"
#include "camera.h"
#include "my_mouse.h"
namespace Ui {
class main_function;
}

class main_function : public QWidget
{
    Q_OBJECT

public:
    explicit main_function(QWidget *parent = nullptr);
    ~main_function();
    //以下为功能界面声明
    smart_home *s_home;
    weather_online *o_weather;
    music_player *m_player;
//    camera *c_camera;
    void closeEvent(QCloseEvent *event) override ;//重写关闭事件
signals:
    void back_home();

private:
    Ui::main_function *ui;
};

#endif // MAIN_FUNCTION_H
